package vip.meet.dao.mapper.user;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import vip.meet.dao.bean.user.UserBean;


public interface UserBeanMapper {
    
    int deleteByPrimaryKey(Integer id);
    
    int insert(UserBean record);
    
    int insertSelective(UserBean record);
    
    UserBean selectByPrimaryKey(Integer id);
    
    int updateByPrimaryKeySelective(UserBean record);
    
    int updateByPrimaryKey(UserBean record);
    
    short deleteUserById(Integer id);
    
    
    List<UserBean> getUserBeans(@Param("start")Integer start,@Param("num")Integer num);
    
//    Map<Integer,String> getIdNames();
    @MapKey("id")Map<Integer,Map<Integer,String>> getIdNames();
    
    @MapKey("id")Map<Integer,UserBean> getIdUsers();
    
    @MapKey("id")Map<Integer,UserBean> getIdUsersRowBounds(RowBounds bound);
    
    UserBean [] getIdUsersArray(RowBounds bound);
}